import java.util.Scanner;

public class MaxOverload {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a= scanner.nextInt();
        int b= scanner.nextInt();
        double c= scanner.nextDouble();
        double d= scanner.nextDouble();
        double e= scanner.nextDouble();

        System.out.println("最大整数："+max(a,b));
        System.out.println("最大小数："+max(c,d,e));


    }
    public static int max(int a,int b){
        if (a > b) {
            return a;
        } else {
            return b;
        }
    }
    public static double max(double c,double d,double e){
        if(c>d){
            double max=c;
            if(max<e){
                max=e;
            }
            return max;
        }
        else {
            double max=d;
            if(max<e){
                max=e;
            }
            return max;
        }
    }
}
